fix(opencode-nvim): Update api call for toggle function in opencode - #1792
fix(opencode-nvim): Update api call for toggle function in opencode#1792josh-dix wants to merge 1 commit into
Conversation
Review ChecklistDoes this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist: Proper conventional commit scoping:
|
| function() require("opencode").toggle() end, | ||
| desc = "Toggle embedded", | ||
| function() require("opencode").start() end, | ||
| desc = "Start & Toggle embedded", |
There was a problem hiding this comment.
Shouldn't this be just Start embedded?
There was a problem hiding this comment.
Calling start again toggles it, so I thought most people would understand the toggle word despite the api call being start, and including both would be more clear to users.
I don't mind what it is called really but I do think it is better to include both. If I had to choose one I would stick with toggle since that is the user-friendly word for the more important aspect of the action.
There was a problem hiding this comment.
@josh-dix the start() command was removed fro the public api before your PR was opened: nickjvandyke/opencode.nvim@49b3418
📑 Description
Due to opencode plugin api being modified this requires updating.
https://github.com/nickjvandyke/opencode.nvim/blob/7749a034db61258ece828df70a89ff31bb27ff47/CHANGELOG.md?plain=1#L70
📖 Additional Information